﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace WebBuddy.Ajax
{
    /// <summary>
    /// The options when we have your data
    /// </summary>
    /// <typeparam name="TResponse">The type of data you are expecting</typeparam>
    /// <param name="responseData">The data returned from the ajax call</param>
    /// <param name="userState">Your user-defined state</param>
    public delegate void GetResponseCallback<TResponse>(TResponse responseData, object userState);

    /// <param name="exception">The exception returned by WebClient</param>
    /// <param name="userState">User State Info</param>
    public delegate void AjaxFailure(System.Exception exception, object userState);
}
